#include <pthread.h>
#include <cstdio>

extern pthread_mutex_t mymutex;

int number;

void get_inc() {
	pthread_mutex_lock(&mymutex);
	printf("%d", number);
	number++;
	pthread_mutex_unlock(&mymutex);
}

int main() {
	
		get_inc();

		return 0;	

}
